package com.openbravo.pos.inventory.model;

import cn.ekuma.data.ui.swing.AbstractDTOTableModel;
import com.openbravo.bean.LocationLayout;
import com.openbravo.pos.base.AppLocal;

public class LocationLayoutTableModel extends AbstractDTOTableModel<LocationLayout>{

    @Override
    public String[] getColumnNames() {
        return new String[] {
                AppLocal.getIntString("label.locationname")
                };
    }

    public Object getValueAt(int rowIndex, int columnIndex) {
    	   LocationLayout obj= objs.get(rowIndex);
            switch(columnIndex){
            case 0:
            	return obj.getName();
            }
            return null;
    }

}
